/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sample.services;

import sample.model.User;

/**
 *
 * @author nicolas
 */
public class UserService {
    
    public boolean login(User user){
        return user != null && user.getName() != null && !user.getName().isEmpty();
    }

}
